Page({
  data: {
    isCountDown: false,
    time: 20,
  },
  getSMSCode() {
    this.setData({
      isCountDown: true,
    });
  },
  setCountDown(e) {
    console.log(e);
    this.setData({
      time: e.detail,
    });
    if (e.detail === 0) {
      this.setData({
        isCountDown: false,
        time: 10,
      });
    }
  },
});
